/* @(#)GSOrderDeliverStatusVO.java
 * 
 *  Project:GS
 *  
 *  Modify  Information:
 *  ===============================================
 *   Author          Date            Description
 *  -------------- ---------------  ---------------
 *  Road  Zheng      2006-3-17          新增
 *  Jenny Li         2006-3-29          修改
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 *
 */
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

public class GSOrderDeliverStatusVO implements GSBaseBean {
	public String orderid;

	public String concentricityId;

	public String manufactureName;

	public String isTradeFlatManufacture;

	public String manufactureSpec;

	public String manufactureType;

	public String manufactureBrand;

	public String orderCount;

	public String providerName;

	public String wordcorpId;

	public String manufactureUnitPrice;

	public String deliverGoodsDate;

	public String deliverGoodsTime;
	
	public String providerId;
	
	public String orderDetailId;
	
	public String quantUnit;
    
    public String isTradeFlatProvider;

    public String mode;
	public Object process(ResultSet aResultSet) throws SQLException {
		GSOrderDeliverStatusVO tGSOrderVO = new GSOrderDeliverStatusVO();
		tGSOrderVO.orderDetailId = aResultSet.getString("P1") == null ? "" : aResultSet.getString("P1").trim();
		tGSOrderVO.concentricityId = aResultSet.getString("P2") == null ? "" : aResultSet.getString("P2").trim();
		tGSOrderVO.manufactureName = aResultSet.getString("P3") == null ? "" : aResultSet.getString("P3").trim();
		tGSOrderVO.isTradeFlatManufacture = aResultSet.getString("P4") == null ? "" : aResultSet.getString("P4").trim();
		tGSOrderVO.manufactureSpec = aResultSet.getString("P5") == null ? "" : aResultSet.getString("P5").trim();
		tGSOrderVO.manufactureType = aResultSet.getString("P6") == null ? "" : aResultSet.getString("P6").trim();
		tGSOrderVO.manufactureBrand = aResultSet.getString("P7") == null ? "" : aResultSet.getString("P7").trim();
		tGSOrderVO.orderCount = aResultSet.getString("P8") == null ? "" : aResultSet.getString("P8").trim();
		tGSOrderVO.providerName = aResultSet.getString("P9") == null ? "" : aResultSet.getString("P9").trim();
		tGSOrderVO.wordcorpId = aResultSet.getString("P10") == null ? "" : aResultSet.getString("P10");
		tGSOrderVO.manufactureUnitPrice = aResultSet.getString("P11") == null ? "" : aResultSet.getString("P11");
		tGSOrderVO.deliverGoodsDate = aResultSet.getString("P12") == null ? "" : aResultSet.getString("P12");
		tGSOrderVO.deliverGoodsTime = aResultSet.getString("P13") == null ? "" : aResultSet.getString("P13");
		tGSOrderVO.providerId = aResultSet.getString("P14") == null ? "" : aResultSet.getString("P14");
		tGSOrderVO.orderid = aResultSet.getString("P15") == null ? "" : aResultSet.getString("P15");
		tGSOrderVO.quantUnit = aResultSet.getString("P16") == null ? "" : aResultSet.getString("P16");
        tGSOrderVO.isTradeFlatProvider = aResultSet.getString("P17");
        tGSOrderVO.mode = aResultSet.getString("P19");
		return tGSOrderVO;
	}
	
	 public String getDeliverGoodsTimeInfo(String aDeliverGoodsTime) {
		String tResult = "";
		if (aDeliverGoodsTime != null && aDeliverGoodsTime.trim().length() > 0) {
			if (aDeliverGoodsTime.equals("1"))
				tResult = "8:00-12:00";
			else if (aDeliverGoodsTime.equals("2"))
				tResult = "13:00-18:00";
			else if (aDeliverGoodsTime.equals("3"))
				tResult = "全天";
		}
		return tResult;
	}
}
